<!DOCTYPE html>
<html lang="en">
<head>
    <title>SUPPORT FOR IN</title>
    <meta charset="utf-8">
</head>
<body>
<h1>当前浏览器是否支持[for in]>>>>>> <span id="supportForIn1"></span></h1>
<h1>当前浏览器是否支持[for in]>>>>>> <span id="supportForIn2"></span></h1>
<script type="text/javascript">
    function refreshMouldInfo(datas) {
        console.info("........................", datas);
        for (var inx in datas) {
            console.info('arr1 index: ', datas[inx]);
        }
    }

    console.info('当前浏览器是否支持 for in');
    var arr1 = [];
    var arr2 = ['123', '456'];
    refreshMouldInfo(arr1);
    refreshMouldInfo(arr2);
    document.getElementById('supportForIn1').innerHTML = 'arr1 >>>>>>>> [' + arr1 + ']';
    document.getElementById('supportForIn2').innerHTML = 'arr2 >>>>>>>> [' + arr2 + ']';
</script>
</body>
</html>